
<%@ page import="com.scalar.chiptrack.users.Functionality,
                 com.scalar.chiptrack.utils.ConfigManager,
                 com.scalar.chiptrack.commons.Constants"%>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  
  <!-- SALES ORDER -->
  <TR>
    <TD bgColor="#FFFFFF" colSpan=6><IMG height=28
      src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD></TR>
  <TR>
    <TD vAlign=top noWrap colSpan=6>
	<img src="<%=chipTracContext%>/jsp/includes/images/top_curve.gif" width=32 height=28><IMG src="<%=chipTracContext%>/jsp/includes/images/title_sales.gif"></TD></TR>

  <TR>
	<TD colspan='6' background='"<%=chipTracContext%>/jsp/includes/images/left_bg.gif"'>
	    <IMG height=10 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=150></TD> </TR>
  <TR>
	<TD background="<%=chipTracContext%>/jsp/includes/images/left_bg.gif"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD bgColor="#493B76" colSpan=5><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD></TR>
  <TR>
	<TD background="<%=chipTracContext%>/jsp/includes/images/left_bg.gif"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD noWrap align=middle bgColor="#CCCCCC"><IMG height=8 src="<%=chipTracContext%>/jsp/includes/images/left_arrow.gif" width=7 vspace=6 border=0></TD>
	<TD noWrap bgColor="#FFFFFF" colSpan=2><SPAN class=leftsection>&nbsp;
            <%-- <chiptrack:restrictedLink functionality='<%=Functionality.SALES_ORDERS%>' styleClass="leftsection" href="/chiptrack/selectCustomer.do?action=SelectCustomer&isSample=1" onmouseover="window.status='Click for Sales Order Details';return true" onmouseout="window.status='';return true">Sales Orders</chiptrack:restrictedLink> --%>
            <%--<chiptrack:restrictedLink functionality='<%=Functionality.SALES_ORDERS%>' styleClass="leftsection" href="/chiptrack/viewOrders.do?isSample=1" onmouseover="window.status='Click for Sales Order Details';return true" onmouseout="window.status='';return true">Sales Orders</chiptrack:restrictedLink>--%>
            <chiptrack:restrictedLink functionality='<%=Functionality.SALES_ORDERS%>' styleClass="leftsection" href="/chiptrack/selectCustomerForQuote.do?action=SelectCustomer&isSample=1" onmouseover="window.status='Click for Sales Order Details';return true" onmouseout="window.status='';return true">Sales Orders</chiptrack:restrictedLink>        
      </SPAN></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></TD></TR>
  <TR>
	<TD background="<%=chipTracContext%>/jsp/includes/images/left_bg.gif"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=120></TD>
    <TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD></TR>

<!-- END SALES ORDER -->

<%-- SAMPLE SALES ORDER --%>
    <TR>
	<TD colspan='6' background='"<%=chipTracContext%>/jsp/includes/images/left_bg.gif"'>
	    <IMG height=10 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=150></TD> </TR>
  <TR>
	<TD background="<%=chipTracContext%>/jsp/includes/images/left_bg.gif"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD bgColor="#493B76" colSpan=5><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD></TR>
  <TR>
	<TD background="<%=chipTracContext%>/jsp/includes/images/left_bg.gif"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD noWrap align=middle bgColor="#CCCCCC"><IMG height=8 src="<%=chipTracContext%>/jsp/includes/images/left_arrow.gif" width=7 vspace=6 border=0></TD>
	<TD noWrap bgColor="#FFFFFF" colSpan=2><SPAN class=leftsection>&nbsp;
            <chiptrack:restrictedLink functionality='<%=Functionality.SAMPLES %>' styleClass="leftsection" href="/chiptrack/selectCustomer.do?action=SelectCustomer&isSample=0" onmouseover="window.status='Click for Sample Order Details';return true" onmouseout="window.status='';return true">Sample Sales Orders</chiptrack:restrictedLink>
	  </SPAN></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></TD></TR>
  <TR>
	<TD background="<%=chipTracContext%>/jsp/includes/images/left_bg.gif"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=120></TD>
    <TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD></TR>

<%-- END SAMPLE SALES ORDER--%>
<!-- CUSTOMER DETAILS -->

  <TR>
	<TD colspan='6' background='"<%=chipTracContext%>/jsp/includes/images/left_bg.gif"'>
	    <IMG height=10 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=150></TD> </TR>
  <TR>
	<TD background="<%=chipTracContext%>/jsp/includes/images/left_bg.gif"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD bgColor="#493B76" colSpan=5><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD></TR>
  <TR>
	<TD background="<%=chipTracContext%>/jsp/includes/images/left_bg.gif"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD noWrap align=middle bgColor="#CCCCCC"><IMG height=8 src="<%=chipTracContext%>/jsp/includes/images/left_arrow.gif" width=7 vspace=6 border=0></TD>
	<TD noWrap bgColor="#FFFFFF" colSpan=2><SPAN class=leftsection>&nbsp;
	  <chiptrack:restrictedLink functionality='<%=Functionality.CUSTOMER_DETAILS%>' styleClass="leftsection" href="/chiptrack/customersList.do?action=GetAllCustomers" onmouseover="window.status='Click for Customer Details & Setup';return true" onmouseout="window.status='';return true">Customer Details</chiptrack:restrictedLink>
	   </SPAN></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></TD></TR>
  <TR>
	<TD background="<%=chipTracContext%>/jsp/includes/images/left_bg.gif"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=120></TD>
    <TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD></TR>

<!-- END CUSTOMER DETAILS -->
<!-- CUSTOMER RELATIONSHIPS -->
    <TR>
      <TD colspan='6' background='"<%=chipTracContext%>/jsp/includes/images/left_bg.gif"'>
          <IMG height=10 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=150></TD> </TR>
    <TR>
      <TD background="<%=chipTracContext%>/jsp/includes/images/left_bg.gif"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
      <TD bgColor="#493B76" colSpan=5><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD></TR>
    <TR>
      <TD background="<%=chipTracContext%>/jsp/includes/images/left_bg.gif"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
      <TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
      <TD noWrap align=middle bgColor="#CCCCCC"><IMG height=8 src="<%=chipTracContext%>/jsp/includes/images/left_arrow.gif" width=7 vspace=6 border=0></TD>
      <TD noWrap bgColor="#FFFFFF" colSpan=2><SPAN class=leftsection>&nbsp;
        <chiptrack:restrictedLink functionality='<%=Functionality.CUSTOMER_RELATIONSHIPS%>' styleClass="leftsection" href="/chiptrack/customerRelationshipSearch.do" onmouseover="window.status='Click for Customer Relationships';return true" onmouseout="window.status='';return true">Customer Relationships</chiptrack:restrictedLink>
         </SPAN></TD>
      <TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></TD></TR>
    <TR>
      <TD background="<%=chipTracContext%>/jsp/includes/images/left_bg.gif"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
      <TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
      <TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
      <TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
      <TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=120></TD>
      <TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD></TR>

<!-- END CUSTOMER RELATIONSHIPS -->

  <!-- CUSTOMER DETAILS -->

    <TR>
      <TD colspan='6' background='"<%=chipTracContext%>/jsp/includes/images/left_bg.gif"'>
          <IMG height=10 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=150></TD> </TR>
    <TR>
      <TD background="<%=chipTracContext%>/jsp/includes/images/left_bg.gif"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
      <TD bgColor="#493B76" colSpan=5><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD></TR>
    <TR>
      <TD background="<%=chipTracContext%>/jsp/includes/images/left_bg.gif"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
      <TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
      <TD noWrap align=middle bgColor="#CCCCCC"><IMG height=8 src="<%=chipTracContext%>/jsp/includes/images/left_arrow.gif" width=7 vspace=6 border=0></TD>
      <TD noWrap bgColor="#FFFFFF" colSpan=2><SPAN class=leftsection>&nbsp;
        <chiptrack:restrictedLink functionality='<%=Functionality.CUSTOMER_DETAILS%>' styleClass="leftsection" href="/chiptrack/topCustomers.do?action=loadCustomerTypes" onmouseover="window.status='Click for Top Customer Details & Setup';return true" onmouseout="window.status='';return true">Top Customer Setup</chiptrack:restrictedLink>
         </SPAN></TD>
      <TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></TD></TR>
    <TR>
      <TD background="<%=chipTracContext%>/jsp/includes/images/left_bg.gif"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
      <TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
      <TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
      <TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
      <TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=120></TD>
      <TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD></TR>

  <!-- END CUSTOMER DETAILS -->

<!-- Added by Mallik Ankati 01/31/2004 -->
<!-- RMA  -->
  <TR>
	<TD colspan='6' background='"<%=chipTracContext%>/jsp/includes/images/left_bg.gif"'>
	    <IMG height=10 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=150></TD> </TR>
  <TR>
	<TD background="<%=chipTracContext%>/jsp/includes/images/left_bg.gif"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD bgColor="#493B76" colSpan=5><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD></TR>
  <TR>
	<TD background="<%=chipTracContext%>/jsp/includes/images/left_bg.gif"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD noWrap align=middle bgColor="#CCCCCC"><IMG height=8 src="<%=chipTracContext%>/jsp/includes/images/left_arrow.gif" width=7 vspace=6 border=0></TD>
	<TD noWrap bgColor="#FFFFFF" colSpan=2><SPAN class=leftsection>&nbsp;<chiptrack:restrictedLink functionality='<%=Functionality.RMA%>' styleClass="leftsection" href="/chiptrack/rma.do" onmouseover="window.status='Click for RMA';return true" onmouseout="window.status='';return true">
	  RMA</chiptrack:restrictedLink> </SPAN></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></TD></TR>
  <TR>
	<TD background="<%=chipTracContext%>/jsp/includes/images/left_bg.gif"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=120></TD>
    <TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD></TR>
<!-- END RMA -->

<!-- SHIPPING LOCATION FOR SO   -->
  <TR>
	<TD colspan='6' background='"<%=chipTracContext%>/jsp/includes/images/left_bg.gif"'>
	    <IMG height=10 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=150></TD> </TR>
  <TR>
	<TD background="<%=chipTracContext%>/jsp/includes/images/left_bg.gif"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD bgColor="#493B76" colSpan=5><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD></TR>
  <TR>
	<TD background="<%=chipTracContext%>/jsp/includes/images/left_bg.gif"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD noWrap align=middle bgColor="#CCCCCC"><IMG height=8 src="<%=chipTracContext%>/jsp/includes/images/left_arrow.gif" width=7 vspace=6 border=0></TD>
	<TD noWrap bgColor="#FFFFFF" colSpan=2><SPAN class=leftsection>&nbsp;<chiptrack:restrictedLink functionality='<%=Functionality.SHIP_LOCATION_FOR_SO%>' styleClass="leftsection" href="/chiptrack/shippingLocationforSOAction.do" onmouseover="window.status='Click to select Shipping Location for SOs';return true" onmouseout="window.status='';return true">
	  Ship Location for SO</chiptrack:restrictedLink> </SPAN></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></TD></TR>
  <TR>
	<TD background="<%=chipTracContext%>/jsp/includes/images/left_bg.gif"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=120></TD>
    <TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD></TR>
<!-- END SHIPPING LOCATION FOR SO -->
<!-- SALES REPORTS -->
 <TR>
	<TD colspan='6' background='"<%=chipTracContext%>/jsp/includes/images/left_bg.gif"'>
	    <IMG height=10 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=150></TD> </TR>
  <TR>
	<TD background="<%=chipTracContext%>/jsp/includes/images/left_bg.gif"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD bgColor="#493B76" colSpan=5><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD></TR>
  <TR>

	<TD background="<%=chipTracContext%>/jsp/includes/images/left_bg.gif"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD noWrap align=middle bgColor="#CCCCCC"><IMG height=8 src="<%=chipTracContext%>/jsp/includes/images/left_arrow.gif" width=7 vspace=6 border=0></TD>
	<TD noWrap bgColor="#FFFFFF" colSpan=2><SPAN class=leftsection>&nbsp;<%--<chiptrack:restrictedLink functionality='<%=Functionality.SALES_REPORTS%>' styleClass="leftsection" href="/chiptrack/salesReport.do?action=salesreport" onmouseover="window.status='Click for Sales Reports';return true" onmouseout="window.status='';return true">
	  Reports</chiptrack:restrictedLink>--%>
    <%  if ( Functionality.enableParentLink( Functionality.SALES_REPORTS, session ))   {  %>
        <A class=leftsection href="<%=chipTracContext%>/salesReport.do?action=salesreport" onmouseover="window.status='Click for Reports';return true" onmouseout="window.status='';return true"> Reports </A>
    <%  } else{         %>
        Reports
    <%  }               %>
    </SPAN></TD>
    <TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></TD></TR>

  <TR>
	<TD background="<%=chipTracContext%>/jsp/includes/images/left_bg.gif"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=15></TD>
	<TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=120></TD>
    <TD bgColor="#493B76"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD></TR>
    
<!-- END SALES REPORTS -->
  </TBODY>
  </TABLE><BR>


